<%@page import="java.util.TreeMap"%>
<%
String name = (String) request.getAttribute("name");
TreeMap<String, String> check = (TreeMap<String, String>) request.getAttribute("check");
%>
<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<jsp:include page="/admin/layouts/header.jsp" />
 
	<script type="text/javascript" src="/admin/js/list_form.js"></script>
	<script type="text/javascript" src="/admin/js/form_meta_header.js"></script>

		
		<div class="maincontent noright">
        	<div class="maincontentinner">
                <ul class="maintabmenu multipletabmenu">
                	<li class="current"><a href="/admin/system/permission">Meta Header Config</a></li>
                </ul><!--maintabmenu-->
                
                <div class="content">
					<jsp:include page="/admin/elements/message_box.jsp"/>
					
					
					<div class="contenttitle radiusbottom0">
	                	<h2 class="table"><span>Page Meta Header Config</span></h2>
	                </div>
                    <form class="stdform stdform2" id="edit_config_form" action="" method="get">
                    	<p>
                        	<label>Choise Page</label>
                            <span class="field">
                            	<select name="name">
                            		<option value="home">Home</option>
                            		<option value="about">About Us</option>
                            		<option value="contact">Contact</option>
                            		<option value="privacy">Privacy</option>
                            		<option value="terms">Terms & Conditions</option>
                            	</select>
                            </span>
                        </p>
                        
                        <p class="stdformbutton">
                        	<button class="submit radius2">Change Config</button>
                        </p>
                        
                    </form>
                    
                    <br clear="all">
                    <br />
                    
                    <% if (name != null && !name.isEmpty()) { %>
                    <form method="post" action="#" class="stdform" id="edit_config_form">
                        
                        <p>
                        	<label>Title</label>
                            <span class="field">
                            	<input type="text" class="smallinput" name="title" id="c_title" value="">
                            	 <% if (check.get("title") != null) { %>
									<label for="c_title" generated="true" class="error"><%=check.get("title") %></label>
								<% } %>
                            </span>
                        </p>
                        
                        <p>
                        	<label>META Keywords</label>
                            <span class="field">
                            	<textarea id="c_keywords" class="longinput" name="keywords"  rows="3" cols="80"></textarea>
                            	<% if (check.get("keywords") != null) { %>
									<label for="c_keywords" generated="true" class="error"><%=check.get("keywords") %></label>
								<% } %>
                            </span>
                        </p>
                        
                        <p>
                        	<label>META Description</label>
                            <span class="field">
                            	<textarea id="c_description" class="longinput" name="description"  rows="5" cols="80"></textarea>
                            	<% if (check.get("description") != null) { %>
									<label for="c_description" generated="true" class="error"><%=check.get("description") %></label>
								<% } %>
                            </span> 
                        </p>
                        
                        <p>
                        	<label>Og Site Name</label>
                            <span class="field">
                            	<input id="c_ogSiteName" type="text" class="mediuminput" name="ogSiteName" value="">
                            	<% if (check.get("ogSiteName") != null) { %>
									<label for="c_ogSiteName" generated="true" class="error"><%=check.get("ogSiteName") %></label>
								<% } %>
                            </span>
                        </p>
                        
                        <p>
                        	<label>ogTitle</label>
                            <span class="field">
                            	<input id="c_ogTitle" type="text" class="mediuminput" name="ogTitle" value="">
                            	<% if (check.get("ogTitle") != null) { %>
									<label for="c_ogTitle" generated="true" class="error"><%=check.get("ogTitle") %></label>
								<% } %>
                            </span>
                        </p>
                        
                        <p>
                        	<label>ogUrl</label>
                            <span class="field">
                            	<input id="c_ogUrl" type="text" class="longinput" name="ogUrl" value="">
                            	<% if (check.get("ogUrl") != null) { %>
									<label for="c_ogUrl" generated="true" class="error"><%=check.get("ogUrl") %></label>
								<% } %>
                            </span>
                        </p>
                        
                        <p>
                        	<label>ogImage</label>
                            <span class="field">
                            	<input id="c_ogImage" type="text" class="longinput" name="ogImage" value="">
                            	<% if (check.get("ogImage") != null) { %>
									<label for="c_ogImage" generated="true" class="error"><%=check.get("ogImage") %></label>
								<% } %>
                            </span>
                        </p>
                        
                        <p>
                        	<label>ogDescription</label>
                            <span class="field">
                            	<textarea id="c_ogDescription" class="longinput" name="ogDescription"  rows="3" cols="80"></textarea>
                            	<% if (check.get("ogDescription") != null) { %>
									<label for="c_ogDescription" generated="true" class="error"><%=check.get("ogDescription") %></label>
								<% } %>
                            </span>
                        </p>
                        
                        <br clear="all">
                        
                        <p class="stdformbutton">
                        	<button class="submit radius2">Submit Button</button>
                            <input type="reset" value="Reset Button" class="reset radius2">
                        </p>
                        
                    </form>
                    
                    <br clear="all">
                    <% } %>
                    
                </div><!--content-->
                
            </div><!--maincontentinner-->
            
            <jsp:include page="/admin/elements/copyright.jsp" />
            
        </div>

<jsp:include page="/admin/layouts/footer.jsp" />